package com.code9xs.mapper;

import com.code9xs.pojo.UserAssociation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface UserAssociationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserAssociation record);

    int insertSelective(UserAssociation record);

    UserAssociation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserAssociation record);

    int updateByPrimaryKey(UserAssociation record);

    int selectUserIsExistAssociation(@Param("uid") Integer uid, @Param("aid") Integer aid);

    int updateMemberInfo(@Param("uid")Integer uid,@Param("aid") Integer aid,@Param("titleId") Integer titleId,@Param("departmentId") Integer departmentId);
}